﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using University.Workshop.Model;

namespace University.Workshop.DataAccess
{
    public static class OperationRoomDataAccess
    {
        static MedicalCenterEntities entities = MedicalCenterEntities.Instance;

        public static bool OperationRoomRegister(OperationRoom operationRoom)
        {
            bool response = false;
            if (operationRoom != null)
            {
                entities.OperationRooms.Add(operationRoom);
                entities.SaveChanges();
                response = true;

            }
            return response;
        }
    }
}
